TextRTF Property

       

Returns or sets the text of a RichTextBox control, including all .rtf code.

Syntax

object.TextRTF [= string]

The TextRTF property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
string A string expression in .rtf format.

Remarks

Setting the TextRTF property replaces the entire contents of a RichTextBox control with the new string.

You can use the TextRTF property along with the Print function to write .rtf files. The resulting file can be read by any other word processor capable of reading RTF-encoded text.